package com.alipay.pluginapp

import android.content.Intent
import android.os.Bundle
import android.util.Log

/**
 * @author: tanghaoshu
 * @date: 2021/9/23
 */
class SecondActivity : BaseActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.plugin_activity_second)
        val stringExtra = intent.getStringExtra("name")?:""
        Log.e("-----",stringExtra)

        findViewById(R.id.btnBack).setOnClickListener {
            val intent = Intent()
            intent.putExtra("ClassName","com.alipay.pluginmodule.MainActivity")
            intent.putExtra("data","这是插件传来的数据")
            startAppActivity(intent)
        }
    }
}